<template>
	<view class="category">
		<view class="category-item">
			<view class="item-title">
				<span>标题</span>
				<img class="img" src="../../static/img/strategy-img/to.svg" alt="" />
			</view>
			<view class="item-info">
				<template v-for="item in 3">
					<view class="item">
						<img class="img" src="../../static/img/strategy-img/test.svg" alt="" />
						<span class="price">￥66.6</span>
					</view>
				</template>
			</view>
		</view>
		<view class="category-item ml">
			<view class="item-title">
				<span>标题</span>
				<img class="img" src="../../static/img/strategy-img/to.svg" alt="" />
			</view>
			<view class="item-info">
				<template v-for="item in 3">
					<view class="item">
						<img class="img" src="../../static/img/strategy-img/test.svg" alt="" />
						<span class="price">￥88.8</span>
					</view>
				</template>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		// 引入组件
		components: {

		},
		onLoad() {

		},
		methods: {

		}
	}
</script>

<style scoped>
	.category {
		display: flex;
		margin-bottom: 10px;
		padding: 0 10px;
	}

	.category .category-item {
		flex: 1;
		border-radius: 5px;
		padding: 5px 10px;
		background: #fff;
	}

	.category .ml {
		margin-left: 10px;
	}

	.category .category-item .item-title {
		display: flex;
		justify-content: space-between;
		align-items: center;
		font-size: 12px;
		font-weight: bold;
		margin-bottom: 10px;
	}

	.item-title .img {
		width: 15px;
		height: 15px;
	}

	.category .category-item .item-info {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
	}

	.item-info .item {
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.item-info .item .img {
		width: 30px;
		height: 30px;
	}

	.item-info .item .price {
		font-size: 12px;
		color: #dd3a30;
		font-weight: bold;
	}
</style>